body {
  background-color: rgba(0, 0, 0, 0.11);
}
#LoginDiv {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  height: 30%;
  padding: 9%;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 1%;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.51);
  font-size: var(--font-size);
  color: var(--grey);
  transition:
    box-shadow 1s ease,
    padding 1s ease;
  box-shadow: -5px -5px 10px rgba(255, 255, 255, 0.9);
  &:hover {
    padding: 8%;
    box-shadow:
      -10px -10px 10px rgba(255, 255, 255, 0.9),
      5px 5px 10px rgba(0, 0, 0, 0.1);
  }
  /* 通过 transform 属性进行居中 */
  transform: translate(-50%, -50%);
  div {
    font-size: calc(1.2 * var(--font-size));
    margin-bottom: 3%;
  }
  input {
    appearance: none;
    color: var(--grey);
    height: 10%;
    width: 50%;
    min-width: 100px;
    outline: none;
    padding: 1%;
    border-width: 0;
    transition: all 1s ease;
    &:hover,
    &:focus {
      padding: 1.1%;
      border-radius: 10px;
      font-size: calc(1.1 * var(--font-size));
      box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.1);
    }
  }
  input.red {
    color: var(--red);
  }
  button {
    width: 20%;
    height: 20%;
    border: 0px;
    border-radius: 10px;
    font-size: var(--font-size);
    color: var(--grey);
    &:hover {
      cursor: pointer;
    }
  }
}
